/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.com.peluq.model.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Diego_M
 */
@Embeddable
public class BolDepositoPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "idconci_banco", nullable = false)
    private int idconciBanco;
    @Basic(optional = false)
    @NotNull
    @Column(name = "idrecaudaciones", nullable = false)
    private int idrecaudaciones;

    public BolDepositoPK() {
    }

    public BolDepositoPK(int idconciBanco, int idrecaudaciones) {
        this.idconciBanco = idconciBanco;
        this.idrecaudaciones = idrecaudaciones;
    }

    public int getIdconciBanco() {
        return idconciBanco;
    }

    public void setIdconciBanco(int idconciBanco) {
        this.idconciBanco = idconciBanco;
    }

    public int getIdrecaudaciones() {
        return idrecaudaciones;
    }

    public void setIdrecaudaciones(int idrecaudaciones) {
        this.idrecaudaciones = idrecaudaciones;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idconciBanco;
        hash += (int) idrecaudaciones;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BolDepositoPK)) {
            return false;
        }
        BolDepositoPK other = (BolDepositoPK) object;
        if (this.idconciBanco != other.idconciBanco) {
            return false;
        }
        if (this.idrecaudaciones != other.idrecaudaciones) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "py.com.peluq.model.entity.BolDepositoPK[ idconciBanco=" + idconciBanco + ", idrecaudaciones=" + idrecaudaciones + " ]";
    }
    
}
